package cn.itcast.crm.service.test;

import static org.junit.Assert.*;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import cn.itcast.crm.dao.CustomerRepository;
import cn.itcast.crm.service.CustomerService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations=("classpath:applicationContext.xml"))
public class CustomerServiceTest01 {

	@Autowired
	private CustomerService service;
	
	
	
	
	@Test
	public void testFindNoFixedAreaIdCustomers() {
		
		System.out.println(service.findNoFixedAreaIdCustomers());
	
	}

	@Test
	public void testFindHasFixedAreaIdCustomer() {
		System.out.println(service.findHasFixedAreaIdCustomer("1"));
	
	}

	@Test
	public void testCustmoerToFixed() {
		service.CustmoerToFixed("1,2,3", "1");
	
	}
	}

